<h2>Manage playlist (id: <?php echo request::get("id"); ?>)</h2>
<h3></h3>

<p><a href="/playlist/admin">Back to overview</a></p>

<form action="/playlist/saveContent" method="post">

	Add <label for="video">video ID:</label> <input id="video" name="video" type="text"></input>
	<input type="hidden" name="playlist" value="<?php echo request::get("id"); ?>" />
	<input type="submit" value="Insert" />	

</form>

<table>
<?php foreach($this->playlistContents as $row) {
	$video = new video($row->video_id); ?>
	<tr>
		<td><?php echo $video->getId(); ?></td>
		<td><?php echo $video->getName(); ?></td>
		<td><a href="/playlist/removeContent?id=<?php echo $row->id; ?>">delete this video</a></td>
	</tr>
<?php }?>
</table>